package cn.hsa.fqz.monitor.dao;

import cn.hsa.fqz.monitor.entity.TMonitorUserSqlCondition;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TMonitorUserSqlConditionMapper {

    int deleteByPrimaryKey(Integer id);

    int insert(TMonitorUserSqlCondition record);

    int insertSelective(TMonitorUserSqlCondition record);

    TMonitorUserSqlCondition selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(TMonitorUserSqlCondition record);

    int updateByPrimaryKey(TMonitorUserSqlCondition record);

    int deleteByUserAcct(@Param("userAcct") String userAcct);

    List<TMonitorUserSqlCondition> selectByUserAcctAndEntityCode(@Param("userAcct") String userAcct,@Param("entityCode")String entityCode);

    int deleteByEntityCodeAndUserAcctAndField(@Param("entityCode") String entityCode, @Param("account") String account, @Param("field") String field);
}
